package com.qqtech.qquan.im.jersey;

import org.glassfish.jersey.client.JerseyClient;
import org.glassfish.jersey.client.JerseyClientBuilder;
import org.glassfish.jersey.client.JerseyWebTarget;

/**
 * JerseyWebTarget EndPoints
 * 
 * @author woon 2016-07-11
 *
 */
public interface EndPoints {

	//final JerseyClient CLIENT = JerseyUtils.getJerseyClient(true);

	final JerseyClient CLIENT = JerseyClientBuilder.createClient();

	final JerseyWebTarget ROOT_TARGET = CLIENT
			.target("https://a1.easemob.com/");

	JerseyWebTarget APPLICATION_TEMPLATE = ROOT_TARGET.path("{org_name}").path(
			"{app_name}");

	JerseyWebTarget TOKEN_APP_TARGET = APPLICATION_TEMPLATE.path("token");

	JerseyWebTarget USERS_TARGET = APPLICATION_TEMPLATE.path("users");

	JerseyWebTarget USERS_ADDFRIENDS_TARGET = APPLICATION_TEMPLATE
			.path("users").path("{ownerUserName}").path("contacts")
			.path("users").path("{friendUserName}");

	JerseyWebTarget MESSAGES_TARGET = APPLICATION_TEMPLATE.path("messages");

	JerseyWebTarget CHATMESSAGES_TARGET = APPLICATION_TEMPLATE
			.path("chatmessages");

	JerseyWebTarget CHATGROUPS_TARGET = APPLICATION_TEMPLATE.path("chatgroups");

	JerseyWebTarget CHATFILES_TARGET = APPLICATION_TEMPLATE.path("chatfiles");
}
